package com.tian.view.anim.attr_anim

import android.animation.TypeEvaluator

/**
 * @author tiansongtao, Email:tiansongtao@up366.com
 * @date 2022/12/27 14:57
 */
class CustomEvaluator: TypeEvaluator<Number> {
    override fun evaluate(fraction: Float, startValue: Number?, endValue: Number?): Number {
        val startFloat = startValue!!.toFloat()
        return startFloat + fraction * (endValue!!.toFloat() - startFloat) - 200
    }
}